package com.jk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jk.dto.TbClass;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

public interface TbClassMapper extends BaseMapper<TbClass> {
    @Delete("delete from tb_class_student where class_id = #{id}")
    void delClassAndStudentById(Integer id);

    IPage<TbClass> findTbClassList(Page<TbClass> page, @Param(value = "tbClass") TbClass tbClass);
}
